package com.sgb.kjwl.api.service;


import com.sgb.kjwl.model.entity.chat.NewsMenuEntity;
import com.sgb.kjwl.model.entity.chat.NewsNoticeEntity;
import com.sgb.kjwl.model.entity.chat.UploadNoticeSortEntity;
import com.swgk.core.base.model.entity.BaseEntity;
import com.swgk.core.base.model.factory.BaseUrlInterceptor;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface IMServiceAPI {

    //获取通知菜单列表
    @Headers({BaseUrlInterceptor.HEADERS_URL_IM})
    @POST("message/getAppNoticeType")
    Call<BaseEntity<List<NewsMenuEntity>>> getNewsMenuList(@Body Map map);

    //获取通知类型列表
    @Headers({BaseUrlInterceptor.HEADERS_URL_IM})
    @POST("message/getNoticeByType")
    Call<BaseEntity<List<NewsNoticeEntity>>> getNoticeListByType(@Body Map map);

    //上传通知排序列表
    @Headers({BaseUrlInterceptor.HEADERS_URL_IM})
    @POST("message/sortNoticeType")
    Call<BaseEntity> uploadNoticeSortList(@Body UploadNoticeSortEntity entity);

    class GetUrlSettingEntity {
        String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

}
